package com.fearless.controller;

import com.fearless.crm.settings.entity.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//处理器类
@Controller
@RequestMapping("json")
public class MyController {

    //这里我们来复习json
    @RequestMapping("/review")
    @ResponseBody
    public Person reviewJson(String name,String sex){
        Person person=new Person(name,sex);
        return person;
    }
}
